package com.qyx.pmpucat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.qyx.pmpucat.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("t_user")
public class User extends BaseEntity {

    /**
     * 用户名称
     */
    @Column("username")
    private String username;

    /**
     * 真实姓名
     */
    @Column("real_name")
    private String realName;

    /**
     * 城市
     */
    @Column("city")
    private String city;

    /**
     * 年龄
     */
    @Column("age")
    private Integer age;

    /**
     * 手机号
     */
    @Column("phone")
    private String phone;


    /**
     * 性别: 0-未知, 1-男, 2-女
     */
    @Column("gender")
    private Integer gender;

    /**
     * 密码
     */
    @Column("password")
    private String password;

    /**
     * 用户状态: 0-禁用, 1-正常
     */
    @Column("status")
    private Integer status;

} 